<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>PxCapsuleController.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="PhysXLogoBlack.png"/></td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('PxCapsuleController_8h_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">PxCapsuleController.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="PxCapsuleController_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">// Redistribution and use in source and binary forms, with or without</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">// modification, are permitted provided that the following conditions</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">// are met:</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">//  * Redistributions of source code must retain the above copyright</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">//    notice, this list of conditions and the following disclaimer.</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">//  * Redistributions in binary form must reproduce the above copyright</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">//    notice, this list of conditions and the following disclaimer in the</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">//    documentation and/or other materials provided with the distribution.</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">//  * Neither the name of NVIDIA CORPORATION nor the names of its</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">//    contributors may be used to endorse or promote products derived</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">//    from this software without specific prior written permission.</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS &#39;&#39;AS IS&#39;&#39; AND ANY</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">// PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment">// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment">// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment">// Copyright (c) 2008-2021 NVIDIA Corporation. All rights reserved.</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment">// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment">// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.  </span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#ifndef PX_PHYSICS_CCT_CAPSULE_CONTROLLER</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#define PX_PHYSICS_CCT_CAPSULE_CONTROLLER</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="PxController_8h.html">characterkinematic/PxController.h</a>&quot;</span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#if !PX_DOXYGEN</span></div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacephysx.html">physx</a></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;{</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="structPxCapsuleClimbingMode.html">   44</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structPxCapsuleClimbingMode.html">PxCapsuleClimbingMode</a></div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;{</div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="structPxCapsuleClimbingMode.html#aa5842460fe36a16e5f1f5b1383db9ef5">   46</a></span>&#160;    <span class="keyword">enum</span> <a class="code" href="structPxCapsuleClimbingMode.html#aa5842460fe36a16e5f1f5b1383db9ef5">Enum</a></div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    {</div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="structPxCapsuleClimbingMode.html#aa5842460fe36a16e5f1f5b1383db9ef5a6d3c1dbdc9af5384ef71e200846c9617">   48</a></span>&#160;        <a class="code" href="structPxCapsuleClimbingMode.html#aa5842460fe36a16e5f1f5b1383db9ef5a6d3c1dbdc9af5384ef71e200846c9617">eEASY</a>,          </div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="structPxCapsuleClimbingMode.html#aa5842460fe36a16e5f1f5b1383db9ef5a76288563badf1de8a15128b69594b4fd">   49</a></span>&#160;        <a class="code" href="structPxCapsuleClimbingMode.html#aa5842460fe36a16e5f1f5b1383db9ef5a76288563badf1de8a15128b69594b4fd">eCONSTRAINED</a>,   </div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="structPxCapsuleClimbingMode.html#aa5842460fe36a16e5f1f5b1383db9ef5a539d1d99a17207871e15defbbc6b1817">   51</a></span>&#160;        eLAST</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    };</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;};</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="classPxCapsuleControllerDesc.html">   60</a></span>&#160;<span class="keyword">class </span><a class="code" href="classPxCapsuleControllerDesc.html">PxCapsuleControllerDesc</a> : <span class="keyword">public</span> <a class="code" href="classPxControllerDesc.html">PxControllerDesc</a></div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;{</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    <a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a>                                   <a class="code" href="classPxCapsuleControllerDesc.html">PxCapsuleControllerDesc</a> ();</div><div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="classPxCapsuleControllerDesc.html#abb004bea1a109a1d77a3b9d53dfe8328">   67</a></span>&#160;    <a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keyword">virtual</span>                           <a class="code" href="classPxCapsuleControllerDesc.html#abb004bea1a109a1d77a3b9d53dfe8328">~PxCapsuleControllerDesc</a> () {}</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a>                                   <a class="code" href="classPxCapsuleControllerDesc.html">PxCapsuleControllerDesc</a>(<span class="keyword">const</span> <a class="code" href="classPxCapsuleControllerDesc.html">PxCapsuleControllerDesc</a>&amp;);</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    <a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="classPxCapsuleControllerDesc.html">PxCapsuleControllerDesc</a>&amp;          operator=(<span class="keyword">const</span> <a class="code" href="classPxCapsuleControllerDesc.html">PxCapsuleControllerDesc</a>&amp;);</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    <a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keyword">virtual</span>   <span class="keywordtype">void</span>                setToDefault();</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    <a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keyword">virtual</span>   <span class="keywordtype">bool</span>                isValid()       <span class="keyword">const</span>;</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;</div><div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="classPxCapsuleControllerDesc.html#aa54d06eec5b469d6342e8f26535e8160">   97</a></span>&#160;    <a class="code" href="namespacephysx.html#ab4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a>               <a class="code" href="classPxCapsuleControllerDesc.html#aa54d06eec5b469d6342e8f26535e8160">radius</a>;</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;</div><div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="classPxCapsuleControllerDesc.html#a00dcfa7bd1c529bf745fdf8849746a97">  106</a></span>&#160;    <a class="code" href="namespacephysx.html#ab4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a>               <a class="code" href="classPxCapsuleControllerDesc.html#a00dcfa7bd1c529bf745fdf8849746a97">height</a>;</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;</div><div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="classPxCapsuleControllerDesc.html#a89888e84bf3091c6c3e7818732864674">  115</a></span>&#160;    <a class="code" href="structPxCapsuleClimbingMode.html#aa5842460fe36a16e5f1f5b1383db9ef5">PxCapsuleClimbingMode::Enum</a>     <a class="code" href="classPxCapsuleControllerDesc.html#a89888e84bf3091c6c3e7818732864674">climbingMode</a>;</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    </div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    <a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span>                              copy(<span class="keyword">const</span> <a class="code" href="classPxCapsuleControllerDesc.html">PxCapsuleControllerDesc</a>&amp;);</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;};</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;</div><div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="group__character.html#ga9a157f74e3a2d7c0756bd527ca69d387">  121</a></span>&#160;<a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="group__character.html#ga9a157f74e3a2d7c0756bd527ca69d387">PxCapsuleControllerDesc::PxCapsuleControllerDesc</a> () : <a class="code" href="classPxControllerDesc.html">PxControllerDesc</a>(<a class="code" href="structPxControllerShapeType.html">PxControllerShapeType</a>::eCAPSULE)</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;{</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    <a class="code" href="classPxCapsuleControllerDesc.html#aa54d06eec5b469d6342e8f26535e8160">radius</a> = <a class="code" href="classPxCapsuleControllerDesc.html#a00dcfa7bd1c529bf745fdf8849746a97">height</a> = 0.0f;</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    <a class="code" href="classPxCapsuleControllerDesc.html#a89888e84bf3091c6c3e7818732864674">climbingMode</a> = <a class="code" href="structPxCapsuleClimbingMode.html#aa5842460fe36a16e5f1f5b1383db9ef5a6d3c1dbdc9af5384ef71e200846c9617">PxCapsuleClimbingMode::eEASY</a>;</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;}</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;</div><div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="group__character.html#ga030da33b9be17c7cd67c6be5904d4860">  127</a></span>&#160;<a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="group__character.html#ga9a157f74e3a2d7c0756bd527ca69d387">PxCapsuleControllerDesc::PxCapsuleControllerDesc</a>(<span class="keyword">const</span> <a class="code" href="classPxCapsuleControllerDesc.html">PxCapsuleControllerDesc</a>&amp; other) : <a class="code" href="classPxControllerDesc.html">PxControllerDesc</a>(other)</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;{</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    <a class="code" href="group__character.html#gaca0cf550bc0f4c0a2f215ae79d309fd5">copy</a>(other);</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;}</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;</div><div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="group__character.html#ga81a73ed06438569e730320f322376ae8">  132</a></span>&#160;<a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="classPxCapsuleControllerDesc.html">PxCapsuleControllerDesc</a>&amp; <a class="code" href="group__character.html#ga81a73ed06438569e730320f322376ae8">PxCapsuleControllerDesc::operator=</a>(<span class="keyword">const</span> <a class="code" href="classPxCapsuleControllerDesc.html">PxCapsuleControllerDesc</a>&amp; other)</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;{</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    <a class="code" href="group__character.html#gae237ed6fc1c29cdf83cda84e7e0c8b39">PxControllerDesc::operator=</a>(other);</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;    <a class="code" href="group__character.html#gaca0cf550bc0f4c0a2f215ae79d309fd5">copy</a>(other);</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;}</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;</div><div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="group__character.html#gaca0cf550bc0f4c0a2f215ae79d309fd5">  139</a></span>&#160;<a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="group__character.html#gaca0cf550bc0f4c0a2f215ae79d309fd5">PxCapsuleControllerDesc::copy</a>(<span class="keyword">const</span> <a class="code" href="classPxCapsuleControllerDesc.html">PxCapsuleControllerDesc</a>&amp; other)</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;{</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;    <a class="code" href="classPxCapsuleControllerDesc.html#aa54d06eec5b469d6342e8f26535e8160">radius</a>          = other.<a class="code" href="classPxCapsuleControllerDesc.html#aa54d06eec5b469d6342e8f26535e8160">radius</a>;</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    <a class="code" href="classPxCapsuleControllerDesc.html#a00dcfa7bd1c529bf745fdf8849746a97">height</a>          = other.<a class="code" href="classPxCapsuleControllerDesc.html#a00dcfa7bd1c529bf745fdf8849746a97">height</a>;</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;    <a class="code" href="classPxCapsuleControllerDesc.html#a89888e84bf3091c6c3e7818732864674">climbingMode</a>    = other.<a class="code" href="classPxCapsuleControllerDesc.html#a89888e84bf3091c6c3e7818732864674">climbingMode</a>;</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;}</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;</div><div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="group__character.html#ga48c1aa8996f7a4686f65cf517fb466e5">  146</a></span>&#160;<a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="group__character.html#ga48c1aa8996f7a4686f65cf517fb466e5">PxCapsuleControllerDesc::setToDefault</a>()</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;{</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;    *<span class="keyword">this</span> = <a class="code" href="group__character.html#ga9a157f74e3a2d7c0756bd527ca69d387">PxCapsuleControllerDesc</a>();</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;}</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;</div><div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="group__character.html#gac144ba4b6246608d7f31ec3a5c2be96d">  151</a></span>&#160;<a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">bool</span> <a class="code" href="group__character.html#gac144ba4b6246608d7f31ec3a5c2be96d">PxCapsuleControllerDesc::isValid</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;<span class="keyword"></span>{</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;    <span class="keywordflow">if</span>(!<a class="code" href="group__character.html#gae271bb573608662d4ac54edc1f2c54a6">PxControllerDesc::isValid</a>())    <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;    <span class="keywordflow">if</span>(<a class="code" href="classPxCapsuleControllerDesc.html#aa54d06eec5b469d6342e8f26535e8160">radius</a>&lt;=0.0f)                    <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    <span class="keywordflow">if</span>(<a class="code" href="classPxCapsuleControllerDesc.html#a00dcfa7bd1c529bf745fdf8849746a97">height</a>&lt;=0.0f)                    <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;    <span class="keywordflow">if</span>(<a class="code" href="classPxControllerDesc.html#a51fe254a4807b832b2d34e884d856438">stepOffset</a>&gt;<a class="code" href="classPxCapsuleControllerDesc.html#a00dcfa7bd1c529bf745fdf8849746a97">height</a>+<a class="code" href="classPxCapsuleControllerDesc.html#aa54d06eec5b469d6342e8f26535e8160">radius</a>*2.0f)   <span class="keywordflow">return</span> <span class="keyword">false</span>;   <span class="comment">// Prevents obvious mistakes</span></div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;}</div><div class="line"><a name="l00176"></a><span class="lineno"><a class="line" href="classPxCapsuleController.html">  176</a></span>&#160;<span class="keyword">class </span><a class="code" href="classPxCapsuleController.html">PxCapsuleController</a> : <span class="keyword">public</span> <a class="code" href="classPxController.html">PxController</a></div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;{</div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;</div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;    <span class="keyword">virtual</span>     <a class="code" href="namespacephysx.html#ab4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a>           <a class="code" href="classPxCapsuleController.html#a8c361593760ea09b0ae84ab414520ed1">getRadius</a>() <span class="keyword">const</span> = 0;</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;</div><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;    <span class="keyword">virtual</span>     <span class="keywordtype">bool</span>            <a class="code" href="classPxCapsuleController.html#aa568af92bc897e9242c063d50c71cfd2">setRadius</a>(<a class="code" href="namespacephysx.html#ab4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> radius) = 0;</div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;</div><div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;    <span class="keyword">virtual</span>     <a class="code" href="namespacephysx.html#ab4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a>           <a class="code" href="classPxCapsuleController.html#a9adfe5950e68450982a07a89b5b0e8ed">getHeight</a>() <span class="keyword">const</span> = 0;</div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;</div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;    <span class="keyword">virtual</span>     <span class="keywordtype">bool</span>            <a class="code" href="classPxCapsuleController.html#a8068e1a64b40a6c6a96bd30ba1db0883">setHeight</a>(<a class="code" href="namespacephysx.html#ab4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> height) = 0;</div><div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;</div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;    <span class="keyword">virtual</span>     <a class="code" href="structPxCapsuleClimbingMode.html#aa5842460fe36a16e5f1f5b1383db9ef5">PxCapsuleClimbingMode::Enum</a>     <a class="code" href="classPxCapsuleController.html#a68225dcdb5577d623a0fa5250de40f0b">getClimbingMode</a>()   <span class="keyword">const</span>   = 0;</div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;</div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;    <span class="keyword">virtual</span>     <span class="keywordtype">bool</span>            <a class="code" href="classPxCapsuleController.html#a256d6b281406c5bd1fa30dbc99e5a2df">setClimbingMode</a>(<a class="code" href="structPxCapsuleClimbingMode.html#aa5842460fe36a16e5f1f5b1383db9ef5">PxCapsuleClimbingMode::Enum</a> mode)   = 0;</div><div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;    </div><div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00241"></a><span class="lineno"><a class="line" href="classPxCapsuleController.html#a600fba0f4d5bc98c70e45c162f0b6dd6">  241</a></span>&#160;    <a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a>                   <a class="code" href="classPxCapsuleController.html#a600fba0f4d5bc98c70e45c162f0b6dd6">PxCapsuleController</a>()   {}</div><div class="line"><a name="l00242"></a><span class="lineno"><a class="line" href="classPxCapsuleController.html#a1f391f475b656f082dbf618d549aef61">  242</a></span>&#160;    <span class="keyword">virtual</span>                     <a class="code" href="classPxCapsuleController.html#a1f391f475b656f082dbf618d549aef61">~PxCapsuleController</a>()  {}</div><div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;};</div><div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;</div><div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;<span class="preprocessor">#if !PX_DOXYGEN</span></div><div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;} <span class="comment">// namespace physx</span></div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;</div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="namespacephysx_html"><div class="ttname"><a href="namespacephysx.html">physx</a></div><div class="ttdef"><b>Definition:</b> GuContactBuffer.h:37</div></div>
<div class="ttc" id="structPxCapsuleClimbingMode_html_aa5842460fe36a16e5f1f5b1383db9ef5a6d3c1dbdc9af5384ef71e200846c9617"><div class="ttname"><a href="structPxCapsuleClimbingMode.html#aa5842460fe36a16e5f1f5b1383db9ef5a6d3c1dbdc9af5384ef71e200846c9617">PxCapsuleClimbingMode::eEASY</a></div><div class="ttdoc">Standard mode, let the capsule climb over surfaces according to impact normal. </div><div class="ttdef"><b>Definition:</b> PxCapsuleController.h:48</div></div>
<div class="ttc" id="classPxCapsuleController_html_a68225dcdb5577d623a0fa5250de40f0b"><div class="ttname"><a href="classPxCapsuleController.html#a68225dcdb5577d623a0fa5250de40f0b">PxCapsuleController::getClimbingMode</a></div><div class="ttdeci">virtual PxCapsuleClimbingMode::Enum getClimbingMode() const =0</div><div class="ttdoc">Gets controller&amp;#39;s climbing mode. </div></div>
<div class="ttc" id="classPxCapsuleController_html_a600fba0f4d5bc98c70e45c162f0b6dd6"><div class="ttname"><a href="classPxCapsuleController.html#a600fba0f4d5bc98c70e45c162f0b6dd6">PxCapsuleController::PxCapsuleController</a></div><div class="ttdeci">PX_INLINE PxCapsuleController()</div><div class="ttdef"><b>Definition:</b> PxCapsuleController.h:241</div></div>
<div class="ttc" id="namespacephysx_html_ab4cf332bdb6e8b183e40b6973acc1e9b"><div class="ttname"><a href="namespacephysx.html#ab4cf332bdb6e8b183e40b6973acc1e9b">physx::PxF32</a></div><div class="ttdeci">float PxF32</div><div class="ttdef"><b>Definition:</b> PxSimpleTypes.h:76</div></div>
<div class="ttc" id="classPxCapsuleController_html_a8c361593760ea09b0ae84ab414520ed1"><div class="ttname"><a href="classPxCapsuleController.html#a8c361593760ea09b0ae84ab414520ed1">PxCapsuleController::getRadius</a></div><div class="ttdeci">virtual PxF32 getRadius() const =0</div><div class="ttdoc">Gets controller&amp;#39;s radius. </div></div>
<div class="ttc" id="group__character_html_gae271bb573608662d4ac54edc1f2c54a6"><div class="ttname"><a href="group__character.html#gae271bb573608662d4ac54edc1f2c54a6">PxControllerDesc::isValid</a></div><div class="ttdeci">virtual PX_INLINE bool isValid() const</div><div class="ttdoc">returns true if the current settings are valid </div><div class="ttdef"><b>Definition:</b> PxController.h:597</div></div>
<div class="ttc" id="PxController_8h_html"><div class="ttname"><a href="PxController_8h.html">PxController.h</a></div></div>
<div class="ttc" id="classPxCapsuleController_html_a256d6b281406c5bd1fa30dbc99e5a2df"><div class="ttname"><a href="classPxCapsuleController.html#a256d6b281406c5bd1fa30dbc99e5a2df">PxCapsuleController::setClimbingMode</a></div><div class="ttdeci">virtual bool setClimbingMode(PxCapsuleClimbingMode::Enum mode)=0</div><div class="ttdoc">Sets controller&amp;#39;s climbing mode. </div></div>
<div class="ttc" id="classPxCapsuleController_html_a1f391f475b656f082dbf618d549aef61"><div class="ttname"><a href="classPxCapsuleController.html#a1f391f475b656f082dbf618d549aef61">PxCapsuleController::~PxCapsuleController</a></div><div class="ttdeci">virtual ~PxCapsuleController()</div><div class="ttdef"><b>Definition:</b> PxCapsuleController.h:242</div></div>
<div class="ttc" id="classPxControllerDesc_html_a51fe254a4807b832b2d34e884d856438"><div class="ttname"><a href="classPxControllerDesc.html#a51fe254a4807b832b2d34e884d856438">PxControllerDesc::stepOffset</a></div><div class="ttdeci">PxF32 stepOffset</div><div class="ttdoc">Defines the maximum height of an obstacle which the character can climb. </div><div class="ttdef"><b>Definition:</b> PxController.h:417</div></div>
<div class="ttc" id="classPxCapsuleController_html_aa568af92bc897e9242c063d50c71cfd2"><div class="ttname"><a href="classPxCapsuleController.html#aa568af92bc897e9242c063d50c71cfd2">PxCapsuleController::setRadius</a></div><div class="ttdeci">virtual bool setRadius(PxF32 radius)=0</div><div class="ttdoc">Sets controller&amp;#39;s radius. </div></div>
<div class="ttc" id="classPxCapsuleControllerDesc_html_a89888e84bf3091c6c3e7818732864674"><div class="ttname"><a href="classPxCapsuleControllerDesc.html#a89888e84bf3091c6c3e7818732864674">PxCapsuleControllerDesc::climbingMode</a></div><div class="ttdeci">PxCapsuleClimbingMode::Enum climbingMode</div><div class="ttdoc">The climbing mode. </div><div class="ttdef"><b>Definition:</b> PxCapsuleController.h:115</div></div>
<div class="ttc" id="classPxCapsuleControllerDesc_html_a00dcfa7bd1c529bf745fdf8849746a97"><div class="ttname"><a href="classPxCapsuleControllerDesc.html#a00dcfa7bd1c529bf745fdf8849746a97">PxCapsuleControllerDesc::height</a></div><div class="ttdeci">PxF32 height</div><div class="ttdoc">The height of the controller. </div><div class="ttdef"><b>Definition:</b> PxCapsuleController.h:106</div></div>
<div class="ttc" id="structPxCapsuleClimbingMode_html"><div class="ttname"><a href="structPxCapsuleClimbingMode.html">PxCapsuleClimbingMode</a></div><div class="ttdef"><b>Definition:</b> PxCapsuleController.h:44</div></div>
<div class="ttc" id="classPxCapsuleController_html_a9adfe5950e68450982a07a89b5b0e8ed"><div class="ttname"><a href="classPxCapsuleController.html#a9adfe5950e68450982a07a89b5b0e8ed">PxCapsuleController::getHeight</a></div><div class="ttdeci">virtual PxF32 getHeight() const =0</div><div class="ttdoc">Gets controller&amp;#39;s height. </div></div>
<div class="ttc" id="classPxCapsuleControllerDesc_html_abb004bea1a109a1d77a3b9d53dfe8328"><div class="ttname"><a href="classPxCapsuleControllerDesc.html#abb004bea1a109a1d77a3b9d53dfe8328">PxCapsuleControllerDesc::~PxCapsuleControllerDesc</a></div><div class="ttdeci">virtual PX_INLINE ~PxCapsuleControllerDesc()</div><div class="ttdef"><b>Definition:</b> PxCapsuleController.h:67</div></div>
<div class="ttc" id="classPxCapsuleController_html_a8068e1a64b40a6c6a96bd30ba1db0883"><div class="ttname"><a href="classPxCapsuleController.html#a8068e1a64b40a6c6a96bd30ba1db0883">PxCapsuleController::setHeight</a></div><div class="ttdeci">virtual bool setHeight(PxF32 height)=0</div><div class="ttdoc">Resets controller&amp;#39;s height. </div></div>
<div class="ttc" id="classPxController_html"><div class="ttname"><a href="classPxController.html">PxController</a></div><div class="ttdoc">Base class for character controllers. </div><div class="ttdef"><b>Definition:</b> PxController.h:628</div></div>
<div class="ttc" id="group__character_html_gae237ed6fc1c29cdf83cda84e7e0c8b39"><div class="ttname"><a href="group__character.html#gae237ed6fc1c29cdf83cda84e7e0c8b39">PxControllerDesc::operator=</a></div><div class="ttdeci">PX_INLINE PxControllerDesc &amp; operator=(const PxControllerDesc &amp;)</div><div class="ttdoc">assignment operator. </div><div class="ttdef"><b>Definition:</b> PxController.h:565</div></div>
<div class="ttc" id="classPxCapsuleController_html"><div class="ttname"><a href="classPxCapsuleController.html">PxCapsuleController</a></div><div class="ttdoc">A capsule character controller. </div><div class="ttdef"><b>Definition:</b> PxCapsuleController.h:176</div></div>
<div class="ttc" id="group__character_html_gaca0cf550bc0f4c0a2f215ae79d309fd5"><div class="ttname"><a href="group__character.html#gaca0cf550bc0f4c0a2f215ae79d309fd5">PxCapsuleControllerDesc::copy</a></div><div class="ttdeci">PX_INLINE void copy(const PxCapsuleControllerDesc &amp;)</div><div class="ttdef"><b>Definition:</b> PxCapsuleController.h:139</div></div>
<div class="ttc" id="group__character_html_ga9a157f74e3a2d7c0756bd527ca69d387"><div class="ttname"><a href="group__character.html#ga9a157f74e3a2d7c0756bd527ca69d387">PxCapsuleControllerDesc::PxCapsuleControllerDesc</a></div><div class="ttdeci">PX_INLINE PxCapsuleControllerDesc()</div><div class="ttdoc">constructor sets to default. </div><div class="ttdef"><b>Definition:</b> PxCapsuleController.h:121</div></div>
<div class="ttc" id="structPxControllerShapeType_html"><div class="ttname"><a href="structPxControllerShapeType.html">PxControllerShapeType</a></div><div class="ttdoc">The type of controller, eg box, sphere or capsule. </div><div class="ttdef"><b>Definition:</b> PxController.h:49</div></div>
<div class="ttc" id="structPxCapsuleClimbingMode_html_aa5842460fe36a16e5f1f5b1383db9ef5a76288563badf1de8a15128b69594b4fd"><div class="ttname"><a href="structPxCapsuleClimbingMode.html#aa5842460fe36a16e5f1f5b1383db9ef5a76288563badf1de8a15128b69594b4fd">PxCapsuleClimbingMode::eCONSTRAINED</a></div><div class="ttdoc">Constrained mode, try to limit climbing according to the step offset. </div><div class="ttdef"><b>Definition:</b> PxCapsuleController.h:49</div></div>
<div class="ttc" id="group__character_html_ga81a73ed06438569e730320f322376ae8"><div class="ttname"><a href="group__character.html#ga81a73ed06438569e730320f322376ae8">PxCapsuleControllerDesc::operator=</a></div><div class="ttdeci">PX_INLINE PxCapsuleControllerDesc &amp; operator=(const PxCapsuleControllerDesc &amp;)</div><div class="ttdoc">assignment operator. </div><div class="ttdef"><b>Definition:</b> PxCapsuleController.h:132</div></div>
<div class="ttc" id="group__character_html_gac144ba4b6246608d7f31ec3a5c2be96d"><div class="ttname"><a href="group__character.html#gac144ba4b6246608d7f31ec3a5c2be96d">PxCapsuleControllerDesc::isValid</a></div><div class="ttdeci">virtual PX_INLINE bool isValid() const</div><div class="ttdoc">returns true if the current settings are valid </div><div class="ttdef"><b>Definition:</b> PxCapsuleController.h:151</div></div>
<div class="ttc" id="classPxCapsuleControllerDesc_html"><div class="ttname"><a href="classPxCapsuleControllerDesc.html">PxCapsuleControllerDesc</a></div><div class="ttdoc">A descriptor for a capsule character controller. </div><div class="ttdef"><b>Definition:</b> PxCapsuleController.h:60</div></div>
<div class="ttc" id="classPxControllerDesc_html"><div class="ttname"><a href="classPxControllerDesc.html">PxControllerDesc</a></div><div class="ttdoc">Descriptor class for a character controller. </div><div class="ttdef"><b>Definition:</b> PxController.h:300</div></div>
<div class="ttc" id="group__character_html_ga48c1aa8996f7a4686f65cf517fb466e5"><div class="ttname"><a href="group__character.html#ga48c1aa8996f7a4686f65cf517fb466e5">PxCapsuleControllerDesc::setToDefault</a></div><div class="ttdeci">virtual PX_INLINE void setToDefault()</div><div class="ttdoc">(re)sets the structure to the default. </div><div class="ttdef"><b>Definition:</b> PxCapsuleController.h:146</div></div>
<div class="ttc" id="classPxCapsuleControllerDesc_html_aa54d06eec5b469d6342e8f26535e8160"><div class="ttname"><a href="classPxCapsuleControllerDesc.html#aa54d06eec5b469d6342e8f26535e8160">PxCapsuleControllerDesc::radius</a></div><div class="ttdeci">PxF32 radius</div><div class="ttdoc">The radius of the capsule. </div><div class="ttdef"><b>Definition:</b> PxCapsuleController.h:97</div></div>
<div class="ttc" id="group__foundation_html_gacb03347b642a2a5bdea1f9b305a6fbec"><div class="ttname"><a href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a></div><div class="ttdeci">#define PX_INLINE</div><div class="ttdef"><b>Definition:</b> PxPreprocessor.h:336</div></div>
<div class="ttc" id="structPxCapsuleClimbingMode_html_aa5842460fe36a16e5f1f5b1383db9ef5"><div class="ttname"><a href="structPxCapsuleClimbingMode.html#aa5842460fe36a16e5f1f5b1383db9ef5">PxCapsuleClimbingMode::Enum</a></div><div class="ttdeci">Enum</div><div class="ttdef"><b>Definition:</b> PxCapsuleController.h:46</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.14-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_713b4d6d20ce249967929ad234a3da6e.html">include</a></li><li class="navelem"><a class="el" href="dir_e265834866c0b1ff8bcb07c8c6107029.html">characterkinematic</a></li><li class="navelem"><a class="el" href="PxCapsuleController_8h.html">PxCapsuleController.h</a></li>
    <li class="footer">Copyright &copy; 2008-2021 NVIDIA Corporation, 2788 San Tomas Expressway, Santa Clara, CA 95051 U.S.A. All rights reserved. <a href="http://www.nvidia.com ">www.nvidia.com</a></li>
  </ul>
</div>
</body>
</html>
